<!--{if $config.adstatus==1}-->

<script language="javascript">
function initEcAd() {
document.getElementById("AdLayer1").style.posTop = -200;
document.getElementById("AdLayer1").style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 100;// 左侧广告距离页首高度 
var diff = (document.documentElement.scrollTop + y - document.getElementById("AdLayer1").style.posTop)*.40;
var y = document.documentElement.scrollTop + y - diff;
eval("document.getElementById('" + layerName + "').style.posTop = parseInt(y)");
eval("document.getElementById('" + layerName + "').style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 10);
}
</script>
<div id="AdLayer1" style='position: absolute;visibility:hidden;z-index:1'>
<a style="width:100px;clear:both;text-align:right;display:block" href="javascript:adcolose();">关闭</a>
<a href='<!--{$config.adlink}-->' style="clear:both;"><img src="<!--{$urlpath}--><!--{$config.adsyspic}-->" alt="Ad" /></a></div>
<script language="javascript">
initEcAd();

function adcolose(){
$("#AdLayer1").hide();
}


</script>

<!--{/if}-->